import {takeLatest} from 'redux-saga/effects'
import { SAGA_ADMIN_INFO, SAGA_COLLAPSED, SAGA_LOGIN_STATE } from './type'
import { getCollapsed } from '../layout/component/saga'
import { changeAdminInfo,changeLoginState } from '../views/login/saga'

function* mySaga(){
    // console.log(222);
    yield takeLatest(SAGA_COLLAPSED,getCollapsed)
    yield takeLatest(SAGA_ADMIN_INFO,changeAdminInfo)
    yield takeLatest(SAGA_LOGIN_STATE,changeLoginState)
}
export default mySaga